<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ShipCAD: ShipCADlib/pointervec.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ShipCAD
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_f0b6ef187c5b1483641b038f81654ac4.html">ShipCADlib</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">pointervec.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="pointervec_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*###############################################################################################</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> *    ShipCAD                                                                                   *</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *    Copyright 2015, by Greg Green &lt;ggreen@bit-builder.com&gt;                                    *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *    Original Copyright header below                                                           *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *                                                                                              *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *    This code is distributed as part of the FREE!ship project. FREE!ship is an                *</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *    open source surface-modelling program based on subdivision surfaces and intended for      *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *    designing ships.                                                                          *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *                                                                                              *</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *    Copyright © 2005, by Martijn van Engeland                                                 *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *    e-mail                  : Info@FREEship.org                                               *</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *    FREE!ship project page  : https://sourceforge.net/projects/freeship                       *</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *    FREE!ship homepage      : www.FREEship.org                                                *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *                                                                                              *</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *    This program is free software; you can redistribute it and/or modify it under             *</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *    the terms of the GNU General Public License as published by the                           *</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *    Free Software Foundation; either version 2 of the License, or (at your option)            *</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *    any later version.                                                                        *</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *                                                                                              *</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> *    This program is distributed in the hope that it will be useful, but WITHOUT ANY           *</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A           *</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *    PARTICULAR PURPOSE. See the GNU General Public License for more details.                  *</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> *                                                                                              *</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> *    You should have received a copy of the GNU General Public License along with              *</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> *    this program; if not, write to the Free Software Foundation, Inc.,                        *</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> *    59 Temple Place, Suite 330, Boston, MA 02111-1307 USA                                     *</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> *                                                                                              *</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> *##############################################################################################*/</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#ifndef POINTERVEC_H_</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#define POINTERVEC_H_</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &lt;algorithm&gt;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classPointerVector.html">   37</a></span>&#160;<span class="keyword">class </span><a class="code" href="classPointerVector.html">PointerVector</a></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;{</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classPointerVector.html#a578da527d71168684229a721b16e823f">   41</a></span>&#160;    <span class="keyword">typedef</span> <span class="keywordtype">void</span> <a class="code" href="classPointerVector.html#a578da527d71168684229a721b16e823f">apply_fn</a>(T* elem);</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    </div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classPointerVector.html#a44ef76bb36f22d17606d8af8ef12d499">   43</a></span>&#160;    <a class="code" href="classPointerVector.html#a44ef76bb36f22d17606d8af8ef12d499">PointerVector</a>()</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        : _owned(false)</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        {}</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classPointerVector.html#ac1c5b843d7862e9db7189d459324e246">   47</a></span>&#160;    <a class="code" href="classPointerVector.html#ac1c5b843d7862e9db7189d459324e246">PointerVector</a>(<span class="keywordtype">bool</span> owned)</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        : _owned(owned)</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        {}</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    </div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classPointerVector.html#a5fd5c0d94cdb693be9a8bb5c2b3e305c">   51</a></span>&#160;    <a class="code" href="classPointerVector.html#a5fd5c0d94cdb693be9a8bb5c2b3e305c">~PointerVector</a>()</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        {<a class="code" href="classPointerVector.html#a9f708acfaa3ce26d14b02d8e285c8729">clear</a>();}</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classPointerVector.html#a9f708acfaa3ce26d14b02d8e285c8729">   54</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classPointerVector.html#a9f708acfaa3ce26d14b02d8e285c8729">clear</a>()</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        {</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;            <span class="keywordflow">if</span> (_owned) {</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;                <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;_vec.size(); i++)</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;                    <span class="keyword">delete</span> _vec[i];</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;            }</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;            _vec.clear();</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        }</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">   63</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">size</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="keyword">        </span>{<span class="keywordflow">return</span> _vec.size();}</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classPointerVector.html#af28c2517157ddacfb4d92a4fc73c5a92">   66</a></span>&#160;    T* <span class="keyword">get</span>(<span class="keywordtype">size_t</span> index)</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        {<span class="keywordflow">return</span> _vec[index];}</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classPointerVector.html#a298c14996c9995cc56efc2deadd01fe5">   69</a></span>&#160;    <span class="keyword">const</span> T* <span class="keyword">get</span>(<span class="keywordtype">size_t</span> index) <span class="keyword">const</span></div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        {<span class="keywordflow">return</span> _vec[index];}</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    </div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="classPointerVector.html#abaee9f77dee6ea2523dff64b184c9f54">   72</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classPointerVector.html#abaee9f77dee6ea2523dff64b184c9f54">add</a>(T* elem) {_vec.push_back(elem);}</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classPointerVector.html#acb88f3cb0aa36baaebabc0900bb304e6">   74</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classPointerVector.html#acb88f3cb0aa36baaebabc0900bb304e6">del</a>(T* elem)</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    {</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        <span class="keyword">typename</span> std::vector&lt;T*&gt;::iterator i = std::find(_vec.begin(), _vec.end(), elem);</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <span class="keywordflow">return</span> priv_del(i);</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    }</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classPointerVector.html#a5e9ccf28859f06f13ad3e2dad9ae1cb6">   80</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classPointerVector.html#a5e9ccf28859f06f13ad3e2dad9ae1cb6">apply</a>(<a class="code" href="classPointerVector.html#a578da527d71168684229a721b16e823f">apply_fn</a>* fn)</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        {std::for_each(_vec.begin(), _vec.end(), fn);}</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classPointerVector.html#a594866129f2e9a3701c1f414ca3299e3">   83</a></span>&#160;    <span class="keyword">typename</span> std::vector&lt;T*&gt;::iterator <a class="code" href="classPointerVector.html#a594866129f2e9a3701c1f414ca3299e3">begin</a>()</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        {<span class="keywordflow">return</span> _vec.begin();}</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="classPointerVector.html#a6182f5429c4c98ba2556d40484aab2f9">   86</a></span>&#160;    <span class="keyword">typename</span> std::vector&lt;T*&gt;::iterator <a class="code" href="classPointerVector.html#a6182f5429c4c98ba2556d40484aab2f9">end</a>()</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        {<span class="keywordflow">return</span> _vec.end();}</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    </div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classPointerVector.html#a97ee9f133fa9e61341f33feb3f36f45b">   89</a></span>&#160;    <span class="keyword">typename</span> std::vector&lt;T*&gt;::const_iterator <a class="code" href="classPointerVector.html#a97ee9f133fa9e61341f33feb3f36f45b">begin</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="keyword">        </span>{<span class="keywordflow">return</span> _vec.begin();}</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classPointerVector.html#a62f1573b2bdffb20efaad8fbff6d7676">   92</a></span>&#160;    <span class="keyword">typename</span> std::vector&lt;T*&gt;::const_iterator <a class="code" href="classPointerVector.html#a62f1573b2bdffb20efaad8fbff6d7676">end</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="keyword">        </span>{<span class="keywordflow">return</span> _vec.end();}</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    </div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classPointerVector.html#a1107df98d34db68e3153e67196a16a11">   95</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classPointerVector.html#a1107df98d34db68e3153e67196a16a11">erase</a>(<span class="keyword">typename</span> std::vector&lt;T*&gt;::iterator i)</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        {priv_del(i);}</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classPointerVector.html#a0a7659a1819768998582533c65825501">   98</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classPointerVector.html#a0a7659a1819768998582533c65825501">insert</a>(<span class="keyword">typename</span> std::vector&lt;T*&gt;::iterator position,</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;                <span class="keyword">typename</span> std::vector&lt;T*&gt;::iterator first,</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;                <span class="keyword">typename</span> std::vector&lt;T*&gt;::iterator last)</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    {</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        _vec.insert(position, first, last);</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    }</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <span class="keywordtype">bool</span> priv_del(<span class="keyword">typename</span> std::vector&lt;T*&gt;::iterator i)</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    {</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        <span class="keywordtype">bool</span> removed = <span class="keyword">false</span>;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        <span class="keywordflow">if</span> (i != _vec.end()) {</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;            <span class="keywordflow">if</span> (_owned)</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;                <span class="keyword">delete</span> *i;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;            _vec.erase(i);</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;            removed = <span class="keyword">true</span>;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        }</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        <span class="keywordflow">return</span> removed;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    }</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    <span class="comment">// define copy constructor and assignment operator</span></div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <a class="code" href="classPointerVector.html#a44ef76bb36f22d17606d8af8ef12d499">PointerVector</a>(<span class="keyword">const</span> <a class="code" href="classPointerVector.html">PointerVector</a>&amp;);</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <a class="code" href="classPointerVector.html">PointerVector</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classPointerVector.html">PointerVector</a>&amp;);</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    </div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="keywordtype">bool</span> _owned;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    std::vector&lt;T*&gt; _vec;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;};</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="classPointerVector_html_a5fd5c0d94cdb693be9a8bb5c2b3e305c"><div class="ttname"><a href="classPointerVector.html#a5fd5c0d94cdb693be9a8bb5c2b3e305c">PointerVector::~PointerVector</a></div><div class="ttdeci">~PointerVector()</div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00051">pointervec.h:51</a></div></div>
<div class="ttc" id="classPointerVector_html_a65263559ccd6a9eac2904c691453867b"><div class="ttname"><a href="classPointerVector.html#a65263559ccd6a9eac2904c691453867b">PointerVector::size</a></div><div class="ttdeci">size_t size() const </div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00063">pointervec.h:63</a></div></div>
<div class="ttc" id="classPointerVector_html_a9f708acfaa3ce26d14b02d8e285c8729"><div class="ttname"><a href="classPointerVector.html#a9f708acfaa3ce26d14b02d8e285c8729">PointerVector::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00054">pointervec.h:54</a></div></div>
<div class="ttc" id="classPointerVector_html_a594866129f2e9a3701c1f414ca3299e3"><div class="ttname"><a href="classPointerVector.html#a594866129f2e9a3701c1f414ca3299e3">PointerVector::begin</a></div><div class="ttdeci">std::vector&lt; T * &gt;::iterator begin()</div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00083">pointervec.h:83</a></div></div>
<div class="ttc" id="classPointerVector_html_a5e9ccf28859f06f13ad3e2dad9ae1cb6"><div class="ttname"><a href="classPointerVector.html#a5e9ccf28859f06f13ad3e2dad9ae1cb6">PointerVector::apply</a></div><div class="ttdeci">void apply(apply_fn *fn)</div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00080">pointervec.h:80</a></div></div>
<div class="ttc" id="classPointerVector_html_ac1c5b843d7862e9db7189d459324e246"><div class="ttname"><a href="classPointerVector.html#ac1c5b843d7862e9db7189d459324e246">PointerVector::PointerVector</a></div><div class="ttdeci">PointerVector(bool owned)</div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00047">pointervec.h:47</a></div></div>
<div class="ttc" id="classPointerVector_html"><div class="ttname"><a href="classPointerVector.html">PointerVector</a></div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00037">pointervec.h:37</a></div></div>
<div class="ttc" id="classPointerVector_html_a62f1573b2bdffb20efaad8fbff6d7676"><div class="ttname"><a href="classPointerVector.html#a62f1573b2bdffb20efaad8fbff6d7676">PointerVector::end</a></div><div class="ttdeci">std::vector&lt; T * &gt;::const_iterator end() const </div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00092">pointervec.h:92</a></div></div>
<div class="ttc" id="classPointerVector_html_a6182f5429c4c98ba2556d40484aab2f9"><div class="ttname"><a href="classPointerVector.html#a6182f5429c4c98ba2556d40484aab2f9">PointerVector::end</a></div><div class="ttdeci">std::vector&lt; T * &gt;::iterator end()</div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00086">pointervec.h:86</a></div></div>
<div class="ttc" id="classPointerVector_html_a1107df98d34db68e3153e67196a16a11"><div class="ttname"><a href="classPointerVector.html#a1107df98d34db68e3153e67196a16a11">PointerVector::erase</a></div><div class="ttdeci">void erase(typename std::vector&lt; T * &gt;::iterator i)</div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00095">pointervec.h:95</a></div></div>
<div class="ttc" id="classPointerVector_html_a97ee9f133fa9e61341f33feb3f36f45b"><div class="ttname"><a href="classPointerVector.html#a97ee9f133fa9e61341f33feb3f36f45b">PointerVector::begin</a></div><div class="ttdeci">std::vector&lt; T * &gt;::const_iterator begin() const </div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00089">pointervec.h:89</a></div></div>
<div class="ttc" id="classPointerVector_html_acb88f3cb0aa36baaebabc0900bb304e6"><div class="ttname"><a href="classPointerVector.html#acb88f3cb0aa36baaebabc0900bb304e6">PointerVector::del</a></div><div class="ttdeci">bool del(T *elem)</div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00074">pointervec.h:74</a></div></div>
<div class="ttc" id="classPointerVector_html_a44ef76bb36f22d17606d8af8ef12d499"><div class="ttname"><a href="classPointerVector.html#a44ef76bb36f22d17606d8af8ef12d499">PointerVector::PointerVector</a></div><div class="ttdeci">PointerVector()</div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00043">pointervec.h:43</a></div></div>
<div class="ttc" id="classPointerVector_html_a578da527d71168684229a721b16e823f"><div class="ttname"><a href="classPointerVector.html#a578da527d71168684229a721b16e823f">PointerVector::apply_fn</a></div><div class="ttdeci">void apply_fn(T *elem)</div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00041">pointervec.h:41</a></div></div>
<div class="ttc" id="classPointerVector_html_abaee9f77dee6ea2523dff64b184c9f54"><div class="ttname"><a href="classPointerVector.html#abaee9f77dee6ea2523dff64b184c9f54">PointerVector::add</a></div><div class="ttdeci">void add(T *elem)</div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00072">pointervec.h:72</a></div></div>
<div class="ttc" id="classPointerVector_html_a0a7659a1819768998582533c65825501"><div class="ttname"><a href="classPointerVector.html#a0a7659a1819768998582533c65825501">PointerVector::insert</a></div><div class="ttdeci">void insert(typename std::vector&lt; T * &gt;::iterator position, typename std::vector&lt; T * &gt;::iterator first, typename std::vector&lt; T * &gt;::iterator last)</div><div class="ttdef"><b>Definition:</b> <a href="pointervec_8h_source.html#l00098">pointervec.h:98</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Feb 25 2018 15:36:00 for ShipCAD by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
